Skip to content

feat: add config option for sidebar default state#6955#23137

Closed
themarcel wants to merge 10 commits intoanomalyco:devfrom
themarcel:feat/tui-sidebar-config
Closed

feat: add config option for sidebar default state#6955#23137
themarcel wants to merge 10 commits intoanomalyco:devfrom
themarcel:feat/tui-sidebar-config

Conversation

@themarcel
Copy link
Copy Markdown

@themarcel themarcel commented Apr 17, 2026

Adds a new tui.sidebar config option to set the sidebar's initial state. Accepts "auto" (default), "show", or "hide".

  • Config provides initial default before user interaction
  • User toggles via keybind are stored in KV and take precedence
  • Priority: KV store > config.tui.sidebar > "auto"

Reopening of #6955
Closes #3682

marcelarie added 10 commits January 5, 2026 16:32
Adds a new `tui.sidebar` config option to set the sidebar's initial state.
Accepts "auto" (default), "show", or "hide".

- Config provides initial default before user interaction
- User toggles via keybind are stored in KV and take precedence
- Priority: KV store > config.tui.sidebar > "auto"

Closes anomalyco#3682
- Fix KV persistence bug in sidebar toggle handler
- Add runtime validation for config values
- Add documentation for sidebar config optionk
# Conflicts:
#	packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown
Contributor

Hey! Your PR title ``feat: add config option for sidebar default state#6955 doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

The current PR (23137) is a reopening of the original #6955 for the sidebar config feature. The search results primarily return this PR itself and one other sidebar-related feature. The feature appears to be novel—adding a config option for sidebar default state with KV store precedence is distinct from the persistent toggle functionality in PR #6093.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 17, 2026
@github-actions github-actions Bot closed this Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add a config to set the sidebar to open/closed by default

1 participant